
var canvas=document.getElementById('canvas');//定义一个canvas对象
var c=canvas.getContext('2d');//定义绘图对象画布为2d
   c.lineWidth=1;
   c.strokeStyle="gold";
   c.beginPath();
   c.moveTo(35,25);
   c.lineTo(35,15);
   c.lineTo(190,15);
   c.lineTo(190,25);
   c.stroke();
   c.closePath();

